package office.action.hr.form;

import office.bo.hr.impl.CarriageManage;
import platform.common.bo.IIdentifiableObj;

public class CarriageManageForm {

	private String id;
	private String carriageCode;		//车牌号
	private String factoryCode;			//厂牌型号
	private String engineModel;			//发动机号
	private String driver;				//司机
	private double price;				//购买价格
	private String carriageType;		//车辆类型
	private String buyDate;				//购买日期
	private String remark;				//备注
	private String state;				//当前状态
	
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		CarriageManage bo = (CarriageManage)newObj;
		bo.setId(this.id);
		bo.setCarriageCode(this.carriageCode);
		bo.setFactoryCode(this.factoryCode);
		bo.setEngineModel(this.engineModel);
		bo.setDriver(this.driver);
		bo.setPrice(this.price);
		//bo.setCarriageType(this.carriageType);
		bo.setBuyDate(this.buyDate);
		bo.setRemark(this.remark);
		bo.setState(state);
		return bo;
	}
	
	public void copyPropertiesFromBO(IIdentifiableObj baseBO) {
		CarriageManage bo = (CarriageManage)baseBO;
		this.id = bo.getId().toString();
		this.carriageCode = bo.getCarriageCode();
		this.factoryCode = bo.getFactoryCode();
		this.engineModel = bo.getEngineModel();
		this.driver = bo.getDriver();
		this.price = bo.getPrice();
		//this.carriageType = bo.getCarriageType();
		this.buyDate = bo.getBuyDate();
		this.remark = bo.getRemark();
		this.state = bo.getState();
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCarriageCode() {
		return carriageCode;
	}
	public void setCarriageCode(String carriageCode) {
		this.carriageCode = carriageCode;
	}
	public String getFactoryCode() {
		return factoryCode;
	}
	public void setFactoryCode(String factoryCode) {
		this.factoryCode = factoryCode;
	}
	public String getEngineModel() {
		return engineModel;
	}
	public void setEngineModel(String engineModel) {
		this.engineModel = engineModel;
	}
	public String getDriver() {
		return driver;
	}
	public void setDriver(String driver) {
		this.driver = driver;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getCarriageType() {
		return carriageType;
	}
	public void setCarriageType(String carriageType) {
		this.carriageType = carriageType;
	}
	public String getBuyDate() {
		return buyDate;
	}
	public void setBuyDate(String buyDate) {
		this.buyDate = buyDate;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	
}
